<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="../Templates/InnerSystemTemplate.xhtml"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core">
    
    <ui:define name="content">
        <h:form>;.
            <p:panel id="panel" header="Add New Product"> 
                <p:ajaxStatus style="width:16px;height:16px;">   
                    <f:facet name="start">   
                        <p:graphicImage value="http://www.primefaces.org:8080/showcase/design/ajaxloading.gif" /> 
                    </f:facet> 
 
                    <f:facet name="complete">   
                        <h:outputText value="" />   
                    </f:facet>   
                </p:ajaxStatus> 
 
                <p:messages /> 
 
                <h:panelGrid columns="3" cellpadding="10"> 
                    
                    <h:outputLabel for="productType" style="font-weight: bold" value="Product Type: " /> 
                    <p:inputText value="#{addProductManagerBean.productType}" required="true" label="Product Type" requiredMessage="Product Type is required." id="productType"/> 
                    <p:message for="productType" /> 
                    
                    <h:outputLabel for="productPrice" style="font-weight: bold" value="Product Price: " /> 
                    <p:inputText value="#{addProductManagerBean.productPrice}" required="true" label="Product Price" requiredMessage="Product Price is required." id="productPrice"/> 
                    <p:message for="productPrice" /> 
                    
                </h:panelGrid>
                
                <p:commandButton id="btn" value="Save New Product" update="panel" actionListener="#{addProductManagerBean.saveNewProduct}" ajax="true" />
                <p:commandButton value="Clear" type="reset"/>
            </p:panel> 
        </h:form>
    </ui:define>

</ui:composition>

